/**
 * 
 */
package com.nextive.interview.service.impl;

import android.content.Context;
import android.database.Cursor;

import com.nextive.interview.dao.WeightInfoDao;
import com.nextive.interview.dao.sqlite.SqLiteWeightInfoDao;
import com.nextive.interview.service.WeightInfoService;

/**
 * This class is intended to use as a service to 
 * obtain all information involved in each view.
 * @author Martin
 *
 */
public class WeightInfoServiceImpl implements WeightInfoService {

	private WeightInfoDao userInfoDao;
	
	public WeightInfoServiceImpl(Context context) {
		
		this.userInfoDao = new SqLiteWeightInfoDao(context);
		
	}
	
	public Cursor generateEditWeightHistoryCursor() {
		
		return null;
		
	}

	public Cursor generateViewAllWeightHistoryCursor() {
		
		return userInfoDao.fetchAllUserInfo();
		
	}
	
	public Cursor generateShareWeightCursor() {
		
		return null;
		
	}

	@Override
	public void deleteWeightInfo(long id) {
		
	}

	@Override
	public long createNewWeightEntry() {
		return 0;
	}

	@Override
	public void updateWeightInfo() {
		
	}

}
